/**
 * Created by abiu on 2016-03-07.
 */
module.exports = function(app){
    app.get('/demo1',demo1);
}
var apiM = require('../model').project;
function* demo1() {
    this.body = "demo1";
    var create = yield apiM.create({ project_name:"demo1",
        project_description:"sssss",
        })
    console.log(create);
    var find = yield apiM.find({}).exec();
    console.log(find);
}